import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/",
    component: () => import("./components/Home.vue"),
    meta: { title: "首页" },
    children: [
		
		{
		  path: "/mapall",
		  component: () => import("./pages/mapall/index.vue"),
		  meta: { title: "首页" },
		},
      {
        path: "/home",
        component: () => import("./pages/home/index.vue"),
        meta: { title: "首页" },
      },
	  {
	    path: "/sysman",
	    component: () => import("./pages/sysman/index.vue"),
	    meta: { title: "首页" },
	  },
    ],
  },
  
 {
   path: "/wrap",
   component: () => import("./pages/wrap/index.vue"),
   meta: { title: "首页" },
 },
  {
    path: "/login",
    component: () => import("./pages/login/index.vue"),
    meta: { title: "login" },
  },
	{
	  path: "/guanwang",
	  component: () => import("./pages/guanwang/index.vue"),
	  meta: { title: "guanwang" },
	},
	
	{
	  path: "/searchlist",
	  component: () => import("./pages/searchlist/index.vue"),
	  meta: { title: "searchlist" },
	},
	{
	  path: "/articlelist",
	  component: () => import("./pages/articlelist/index.vue"),
	  meta: { title: "articlelist" },
	},
	{
	  path: "/articledetail",
	  component: () => import("./pages/articledetail/index.vue"),
	  meta: { title: "articledetail" },
	},
	{
	  path: "/piclist",
	  component: () => import("./pages/piclist/index.vue"),
	  meta: { title: "piclist" },
	},
	
  {
    path: "/403",
    component: () => import("./pages/403/index.vue"),
    meta: { title: "403" },
  },
  {
    path: "/:catchAll(.*)",
    name: "403",
    redirect: "/403",
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
